package com.huijie.app.u.service.impl;

import com.huijie.app.u.entity.UserRole;
import com.huijie.app.u.mapper.UserRoleMapper;
import com.huijie.app.u.service.IUserRoleService;
import com.huijie.core.common.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户和角色关系表 服务实现类
 * </p>
 *
 * @author echen
 * @since 2019-01-09
 */
@Service
public class UserRoleServiceImpl extends BaseServiceImpl<UserRoleMapper, UserRole> implements IUserRoleService {

    @Override
    public List<String> listUserRoles(String userLoginName) {
        return baseMapper.selectRolesListByUserLoginName(userLoginName);
    }
}
